package com.xyz.messagehelper.presenter

import android.os.Handler
import android.os.Looper

interface BasePresenter {

    ///伴生对象
    companion object {
        val hanler by lazy {
            Handler(Looper.getMainLooper())
        }
    }

    fun runUiThread(f: () -> Unit) {
        hanler.post { f() };
    }


}